# **************************************************************************
# Fichero makefile.
# --------------------------------------------------------------------------
# Licencia GPL. Juan Gonzalez Gomez
# --------------------------------------------------------------------------
#
#***************************************************************************

#-- Compilador
CC = sdcc

#-- Flags
CFLAGS = -mpic14 -p16f876a
LINKER = -Wl-m -Wl-ainhx8m

all: picp-pic16f876-skypic-2.hex


#--------------------
#- LIMPIEZA
#--------------------
clean:
	  rm -f *.o *.hex *.lst *.p *.d *.asm *.cod *~ *.bak *.map *.pws \
          .tm_project.cache

#-----------------------
# REGLAS GENERICAS
#-----------------------
#-- Obtencion de los ficheros objeto .o
#-- Obtencion de los ficheros ejecutables
%.hex : %.c; $(CC) $(CFLAGS) $(LINKER) $<
